package com.hzhc.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hzhc.dto.RoleSelectVo;
import com.hzhc.entity.SysRole;
import com.hzhc.utils.ResultUtil;
import com.hzhc.vo.SysRoleVo;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

/**
 * <p>
 * 岗位角色 服务类
 * </p>
 *
 * @author duanhm
 * @since 2019-07-26
 */
public interface SysRoleService extends IService<SysRole> {
    List<SysRoleVo> getRolePage(Page<SysRoleVo> page, SysRoleVo vo);

    ResultUtil<T> saveRole(SysRole role);

    ResultUtil<T> updateRole(SysRole role);

    ResultUtil<T> deleteRole(SysRole role);

    ResultUtil<T> checkRole(SysRole role);

    List<RoleSelectVo> getAllRoleByUserIdList(SysRoleVo vo);

    ResultUtil<T> getRoleCode(SysRole sysRole);

    ResultUtil<T> selectRoleCode(String code);

    ResultUtil<T> selectRoleCode(String type,String code);

    List<SysRole> getRoleList(SysRole role);
}
